import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  // 数据仓库
  state: { userInfo: {}, channelsList: [] },
  // 操作数据 窗口
  mutations: {
    setUserInfo (state, value) {
      state.userInfo = value
    },
    setList (state, value) {
      state.channelsList = value
    }
  },
  actions: {},
  modules: {}
})
